Package com.netscape.certsrv.connector
Class Connector
java.lang.Object
com.netscape.certsrv.connector.Connector
- Direct Known Subclasses:
HttpConnector
This interface represents a connector that forwards
CMS requests to a remote authority.
To register a connector, one can add the following
to the CMS.cfg:
Example for KRA type connector. ca.connector.KRA.enable=true ca.connector.KRA.host=thehost.netscape.com #Remote host. ca.connector.KRA.port=1974 #Remote host port. ca.connector.KRA.nickName="cert-kra" #Nickname of connector for identity purposes. ca.connector.KRA.uri="/kra/connector" #Uri of the KRA server. ca.connector.KRA.id="kra" ca.connector.KRA.minHttpConns=1 #Min connection pool connections. ca.connector.KRA.maxHttpConns=10 #Max connection pool connections.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
boolean
Sends the request to a remote authority.Sends the request to a remote authority.void
setCMSEngine
(CMSEngine engine) void
start()
Starts this connector.void
stop()
Stop the connector.
-
Field Details
-
engine
-
-
Constructor Details
-
Connector
public Connector()
-
-
Method Details
-
getCMSEngine
-
setCMSEngine
-
init
- Throws:
EBaseException
-
send
Sends the request to a remote authority.- Parameters:
req
- Request to be forwarded to remote authority.- Returns:
- true for success, otherwise false.
- Throws:
EBaseException
- Failure to send request to remote authority.
-
send
Sends the request to a remote authority.- Parameters:
op
- operation to determine receiving servlet (multi-uri support)msg
- Request to be forwarded to remote authority.- Returns:
- HttpResponse to be parsed by client
- Throws:
EBaseException
- Failure to send request to remote authority.
-
start
public void start()Starts this connector. -
stop
public void stop()Stop the connector.
-